#!/usr/bin/env python
# -*- coding: utf-8 -*-
# Time       :   11:40
# Author     : Y4
# Site       : 
# File       : 04 字符串-拼接.py
# Software   : PyCharm

# 拼接字符串
msg = '奥黛丽看起来像一只黑天鹅'
str1 = '.'.join(msg)   # 奥.黛.丽.看.起.来.像.一.只.黑.天.鹅
print(str1)


# 拼接列表
list1 = ['www','baodu','com']
list2 = '.'.join(list1)
print(list2)            # www.baodu.com


tuple1 = ('www','baodu','com')
tuple2 = '.'.join(tuple1)
print(tuple2)
